package com.leonard.event.listener;

import com.leonard.event.event.UserRegisterEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @description:注册用户事件发送邮件监听
 * @author: qizheng.sun
 * @createDate: 2020/9/29
 * @version: 1.0
 */
@Component
public class RegisterUserEmailListener {
    /**
     * 发送邮件监听实现
     * @param userRegisterEvent 用户注册事件
     */
    @EventListener
    public void sendMail(UserRegisterEvent userRegisterEvent)
    {
        System.out.println("用户注册成功，发送邮件。");
    }
}
